package com.example.lemis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.lemis.model.domain.Street;
import com.example.lemis.model.dto.StreetInsertDTO;
import com.example.lemis.model.dto.StreetQuery;
import com.example.lemis.model.vo.StreetVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 管理街道数据 Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2025-06-24
 */
public interface StreetMapper extends BaseMapper<Street> {
    int insert(@Param("divisionId") Long divisionId, @Param("creatorId") Long creatorId,
                  @Param("streetRequest")StreetInsertDTO streetRequest);  // 插入街道信息

    Page<StreetVO> queryPageWithDivision(StreetQuery dto, Page<StreetVO> page);
}
